const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 9012,
    proxy: {
      '/api': {
        target: 'http://192.168.69.26:6112',  // 改为Postman中使用的地址
        changeOrigin: true,
        // pathRewrite: { '^/api': '/api' }
      },
      '/see': {
        target: 'http://192.168.69.26:8012',  // 改为Postman中使用的地址
        changeOrigin: true,
        pathRewrite: { '^/see': '/api' }
      }
    }
  }
})